﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RedmineHelper
{
    public class account
    {
        public string host { get; set; }
        public string username { get; set; }
        public string password { get; set; }
        public int closeid { get; set; }
    }

    [Serializable]
    public class project
    {
        public int id { get; set; }
        public string name { get; set; }
        public string identifier { get; set; }
        public string description { get; set; }
        public DateTime created_on { get; set; }
        public DateTime updated_on { get; set; }
    }

    [Serializable]
    public class allprojects
    {
        public int limit { get; set; }
        public int offset { get; set; }
        public IList<project> projects { get; set; }
        public int total_count { get; set; }
    }

    [Serializable]
    public class entity
    {
        public string name { get; set; }
        public int id { get; set; }
    }

    [Serializable]
    public class issue
    {
        public DateTime created_on { get; set; }
        public entity priority { get; set; }
        public DateTime start_date { get; set; }
        public entity project { get; set; }
        public entity tracker { get; set; }
        public string description { get; set; }
        public entity status { get; set; }
        public string subject { get; set; }
        public DateTime updated_on { get; set; }
        public entity author { get; set; }
        public int done_ratio { get; set; }
        public int id { get; set; }
    }

    [Serializable]
    public class allissues
    {
        public int limit { get; set; }
        public int offset { get; set; }
        public IList<issue> issues { get; set; }
        public int total_count { get; set; }
    }
}
